import { createStore, combineReducers, applyMiddleware } from 'redux';
import { syncHistoryWithStore, routerReducer } from 'react-router-redux';
import thunk from 'redux-thunk';

import index from '../reducers/index';

export default function configureStore() {
    let web = combineReducers({
        index,
        routing: routerReducer,
    }); 
    const store = createStore(web, applyMiddleware(thunk));
    return store ;
};
